package com.ketangpai.admin.enumeration;

import lombok.Getter;

@Getter
public enum CodeMessage {
    /**
     * 返回信息
     * 命名规则：(E/S) + 形容词 + 名称;可以适当采用英文缩写
     */
    S_SUCCESS(200, "操作成功"),
    S_EMPTY(1, "查询数据为空"),
    E_ERROR(500, "操作失败"),
    E_OTHER(2, "其他错误");

    private final int code;

    private final String message;

    CodeMessage(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
